import { VagueOject, UrlModule, appUrl } from "@/types/common";

interface ConfigType {
    baseUrl: UrlModule<appUrl>
    apiList: UrlModule<VagueOject>,
    aliyunOss: { bucketUrl: string }
}

export const config: ConfigType = {
    aliyunOss: {
        // bucketUrl: 'https://testcodename.oss-cn-shanghai.aliyuncs.com'
        bucketUrl: 'https://texname.oss-cn-shanghai.aliyuncs.com'
    },
    baseUrl: {
        app: {
            devBaseUrl: "http://127.0.0.1:3000/app",
            prodBaseUrl: "http://127.0.0.1:3000/api/json/prod",
        },
        admin: {
            devBaseUrl: "http://127.0.0.1:3000/admin",
            prodBaseUrl: "http://127.0.0.1:3000/api/json/prod",
        }
    },
    apiList: {
        app: {
            articleList: "/article/articleList",
            articleInfo: "/article/info",
            pushComment: "/article/push_comment",
            linkList: "/link/list",
            categoriesList: "/article/categories_list",
            tagList: "/article/tagList"
        },
        admin: {
            menuList: '/menu/list',
            aliyunToken: '/lib/aliyunToken',
            menuForm: '/menu/form',
        }
    }
}